package cn.bonoon.kernel.web.annotations;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 联动树
 * @author jackson
 *
 */
@Target(FIELD)
@Retention(RUNTIME)
public @interface LinkageTree {

	LinkageLayer[] value();
	
	String param() default "x.parent is null";
	
	public @interface LinkageLayer{
		String name();
		String field();
	}
}
